package com.coocaa.aries.dashboard.v1.dict;


import com.coocaa.aries.core.base.model.R;
import com.coocaa.aries.dashboard.v1.dict.service.IExtDictInfoQueryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author bjh
 * @description  aries数据字典信息表-前端控制器
 * @date 2020-03-05 16:31:24
 */
@RestController
@RequestMapping("/v1/dict")
public class ExtDictInfoController {

    @Autowired
    private IExtDictInfoQueryService thisQueryService;


    @RequestMapping(value = "/getTypes/{type}")
    public Object getTypes(@PathVariable(value = "type") String type) {
        return R.ok(thisQueryService.queryByType(type));
    }
}
